package com.example.work3;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

public class denglu_Activity extends AppCompatActivity implements View.OnClickListener{
    private EditText edi_name;
    private EditText edi_psw;
    private Button btn_denglu;
    private Button btn_zhuce;
    private String name_cunchu;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_denglu_);



    }





    public void inic(){
        //用于初始化控件
        edi_name=findViewById(R.id.edi_name);
        edi_psw=findViewById(R.id.edi_psw);
        btn_denglu=findViewById(R.id.btn_denglu);
        btn_zhuce=findViewById(R.id.btn_zhuce);
    }

    @Override
    public void onClick(View v) {

        btn_denglu.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Toast.makeText(getApplicationContext(),"请输入账号",Toast.LENGTH_SHORT).show();
                denglu_Activity.this.finish();
            }
        });

    }
}